//
//  ManHuaDetailsCell.m
//  Double
//
//  Created by 孟令博 on 15/5/23.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "ManHuaDetailsCell.h"

@implementation ManHuaDetailsCell
- (void)dealloc
{
    [_image release];
    [_label release];
    [_label1 release];
    [_lable2 release];
    [_bigView release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.bigView = [[UIView alloc] initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width - 20, 130)];
        _bigView.layer.cornerRadius = 15;
        _bigView.clipsToBounds = YES;
        [self.bigView setBackgroundColor:[UIColor lightGrayColor]];
        [self.contentView addSubview:_bigView];
        [_bigView release];
        
        UIView *myview = [[UIView alloc] initWithFrame:CGRectMake(1, 1, [UIScreen mainScreen].bounds.size.width - 22, 128)];
        myview.layer.cornerRadius = 15;
        myview.clipsToBounds = YES;
        [myview setBackgroundColor:[UIColor whiteColor]];
        [self.bigView addSubview:myview];
        [myview release];
        
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 90, 118)];
        self.image.layer.cornerRadius = 15;
        self.image.clipsToBounds = YES;

        [myview addSubview:self.image];
        [_image release];
        
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(130, 10, [UIScreen mainScreen].bounds.size.width - 170, 30)];
        self.label.font = [UIFont boldSystemFontOfSize:15];
        [myview addSubview:self.label];
        [_label release];
        
        self.label1 = [[UILabel alloc] initWithFrame:CGRectMake(130, 45, [UIScreen mainScreen].bounds.size.width - 170, 30)];
        self.label1.font = [UIFont boldSystemFontOfSize:12];
        [myview addSubview:self.label1];
        [_label1 release];
        
        self.lable2 = [[UILabel alloc] initWithFrame:CGRectMake(130, 80, [UIScreen mainScreen].bounds.size.width - 170, 30)];
        self.lable2.font = [UIFont boldSystemFontOfSize:12];
        self.lable2.textColor = [UIColor orangeColor];
        [myview addSubview:_lable2];
        [_lable2 release];
        
        
        
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
